package cn.edu.thu.laud.jdbc.hivecassandra;

import java.sql.Connection;
import java.sql.SQLException;

import org.apache.cassandra.cql.jdbc.CassandraDataSource;
/**
 * a customed CassandraDataSource which hide the getConnection() function. 
 * @author hxd
 *
 */
public class HideCassandraDataSource extends CassandraDataSource {

	public HideCassandraDataSource(String host, int port, String keyspace,
			String user, String password) {
		super(host, port, keyspace, user, password);
	}

	@Override
	public Connection getConnection() throws SQLException {
		throw new SQLException("this method is hide.");
	}

	@Override
	public Connection getConnection(String user, String password)
			throws SQLException {
		throw new SQLException("this method is hide.");
	}
	

}
